#ifndef _STORAGE_MANAGER_
#define  _STORAGE_MANAGER_

#include "crossplat_def.h"

class CStorageCommon
{
public:
	CStorageCommon();
	~CStorageCommon();
	int Init(const char * storagePath,uint32_t recordSize,int infoSize);
	int Open(const char * storagePath);
	uint32_t GetMaxRecordNum();
	static bool bInitFileSys(const char * storagePath);
private:
	char       m_stoargePath;                //?›¥¡¤??
	char       m_diskName[256];				//?????????./dev/sda
	uint32_t   m_totalSpace;			     //????????MB???????
	uint32_t   m_dataSpace;					//???????????MB???????
	uint32_t   m_dataFreeSpace;		        //????????????MB???????
	int16_t	   m_status;			        //????????,?????§Õ,¦Ä????? -1 ¦Ä????
	uint16_t   m_group;			            //???ï“<= diskNum

    uint32_t   m_recFileSize;	            //????????§³
	int16_t	   m_bInit;			            //????????,?????§Õ,¦Ä????? -1 ¦Ä????
	uint32_t   m_maxFileNum;				//????????????
	uint32_t   m_remainSize;				//???????§³
};
  
#endif //_STORAGE_MANAGER_
